package com.example.HeadFirstDemo.Builder;

import lombok.Data;

@Data
public class CarDirector {
    Builder builder;

    public CarDirector(Builder builder) {
        this.builder = builder;
    }

    public Car build(){
        builder.buildEngine();
        builder.buildSeat();
        return builder.getCar();
    }
}
